package com.itheima.web.analysismanager;

import com.itheima.service.AnalysisByDayService;
import com.itheima.vo.AnalysisSummaryVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

@Component
public class AnalysisManager {
    @DubboReference
    private AnalysisByDayService analysisByDayService;
    //统计展示
    public ResponseEntity summary() {
        AnalysisSummaryVo vo = analysisByDayService.findAnalysisSummaryVo();
        return ResponseEntity.ok(vo);

    }
}
